package com.ruoyi.hatha.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 我的课程对象 p_mykc
 * 
 * @author Dong
 * @date 2024-01-02
 */
public class PMykc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long kcid;

    /** 是否使用 */
    @Excel(name = "是否使用")
    private Integer isused;

    /** 关联订单 */
    @Excel(name = "关联订单")
    private Long oid;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    private PKecheng kecheng;

    public PKecheng getKecheng() {
        return kecheng;
    }

    public void setKecheng(PKecheng kecheng) {
        this.kecheng = kecheng;
    }

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usetime;


    @Transient
    private Integer isyyed;

    public Integer getIsyyed() {
        return isyyed;
    }

    public void setIsyyed(Integer isyyed) {
        this.isyyed = isyyed;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setKcid(Long kcid) 
    {
        this.kcid = kcid;
    }

    public Long getKcid() 
    {
        return kcid;
    }
    public void setIsused(Integer isused) 
    {
        this.isused = isused;
    }

    public Integer getIsused() 
    {
        return isused;
    }
    public void setOid(Long oid) 
    {
        this.oid = oid;
    }

    public Long getOid() 
    {
        return oid;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setUsetime(Date usetime) 
    {
        this.usetime = usetime;
    }

    public Date getUsetime() 
    {
        return usetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("kcid", getKcid())
            .append("isused", getIsused())
            .append("oid", getOid())
            .append("uid", getUid())
            .append("usetime", getUsetime())
            .toString();
    }
}
